# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header


DESCRIPTION="Program Q"
HOMEPAGE="http://qaiml.sourceforge.net/"
MY_P="ProgramQv${PV/./_}"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
RESTRICT="nomirror"
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"
IUSE="doc"
SLOT="0"
S="${WORKDIR}/ProgramQ"
RDEPEND=">=dev-libs/glib-2.0
	dev-libs/libxml2"

DOCS="AUTHORS README COPYING ChangeLog INSTALL NEWS README CONTRIBUTERS TODO"

src_compile() {
	qmake || die
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die "install failed."
}
